import VueRouter from 'vue-router'   //导入包


import user from './zj1/user.vue'
import recommend from './zj1/recommend.vue'
import singer  from './zj1/singer.vue'
import rank from './zj1/rank.vue'
import search from './zj1/search.vue'





var router=new VueRouter({             //创建路由对象  
    routes:[                           // { path: '/person', component: person }
                                                
    { path: '/user', component: user },
    { path: '/recommend', component: recommend },
    { path: '/singer', component: singer },
    { path: '/rank', component: rank },
    { path: '/search', component: search }
                  
    ]   // ,linkActiveClass: 'mystyle' 
  });

  export default router      //向外暴露路由-------不能忘记！！！ 